package jp.aist.gtrc.plus.scheduler.node;


import jp.aist.gtrc.plus.scheduler.status.NodeStatus;
import jp.aist.gtrc.plus.scheduler.specific.pbs.status.PBSNodeStatus;
import jp.aist.gtrc.plus.scheduler.util.Checker;


public class ProvisionedNodeChecker  extends Checker<NodeInfo>{

	public boolean isOK(NodeInfo node){
                boolean ret = false;
                PBSNodeStatus status = (PBSNodeStatus) node.getStatus();
//System.out.print("Checking provision status " + node.getName() + " ");
                String props = status.getProperties();
                if (props != null) {
                   if (props.indexOf("provisioned") >= 0) {
                      ret = true;
                   } 
                } 
//System.out.println(ret);
		return ret;

	}

}
